package com.example.onlinemonitoring.model;

import java.util.Date;
import javax.persistence.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.example.onlinemonitoring.AOP.Float2Serializer;
public class Appalarm {
    @Id
    private Integer id;

    private Integer stationid;

    private Integer devicegroup;

    private Integer deviceaddr;

    private Integer deviceid;

    private String devicename;

    private Integer pointaddr;

    private String pointname;

    private Date starttime;

    private Date endtime;

    private Integer alarmlevel;

    @JsonSerialize(using = Float2Serializer.class)
    private Float data;

    @JsonSerialize(using = Float2Serializer.class)
    private Float warnvalue;

    @JsonSerialize(using = Float2Serializer.class)
    private Float warnrelievevalue;

    @JsonSerialize(using = Float2Serializer.class)
    private Float alarmvalue;

    private String alarmcolumn;

    @JsonSerialize(using = Float2Serializer.class)
    private Float alarmrelievevalue;

    private String alarmmessage;

    private Integer status;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return stationid
     */
    public Integer getStationid() {
        return stationid;
    }

    /**
     * @param stationid
     */
    public void setStationid(Integer stationid) {
        this.stationid = stationid;
    }

    /**
     * @return devicegroup
     */
    public Integer getDevicegroup() {
        return devicegroup;
    }

    /**
     * @param devicegroup
     */
    public void setDevicegroup(Integer devicegroup) {
        this.devicegroup = devicegroup;
    }

    /**
     * @return deviceaddr
     */
    public Integer getDeviceaddr() {
        return deviceaddr;
    }

    /**
     * @param deviceaddr
     */
    public void setDeviceaddr(Integer deviceaddr) {
        this.deviceaddr = deviceaddr;
    }

    /**
     * @return deviceid
     */
    public Integer getDeviceid() {
        return deviceid;
    }

    /**
     * @param deviceid
     */
    public void setDeviceid(Integer deviceid) {
        this.deviceid = deviceid;
    }

    /**
     * @return devicename
     */
    public String getDevicename() {
        return devicename;
    }

    /**
     * @param devicename
     */
    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    /**
     * @return pointaddr
     */
    public Integer getPointaddr() {
        return pointaddr;
    }

    /**
     * @param pointaddr
     */
    public void setPointaddr(Integer pointaddr) {
        this.pointaddr = pointaddr;
    }

    /**
     * @return pointname
     */
    public String getPointname() {
        return pointname;
    }

    /**
     * @param pointname
     */
    public void setPointname(String pointname) {
        this.pointname = pointname;
    }

    /**
     * @return starttime
     */
    public Date getStarttime() {
        return starttime;
    }

    /**
     * @param starttime
     */
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    /**
     * @return endtime
     */
    public Date getEndtime() {
        return endtime;
    }

    /**
     * @param endtime
     */
    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    /**
     * @return alarmlevel
     */
    public Integer getAlarmlevel() {
        return alarmlevel;
    }

    /**
     * @param alarmlevel
     */
    public void setAlarmlevel(Integer alarmlevel) {
        this.alarmlevel = alarmlevel;
    }

    /**
     * @return data
     */
    public Float getData() {
        return data;
    }

    /**
     * @param data
     */
    public void setData(Float data) {
        this.data = data;
    }

    /**
     * @return warnvalue
     */
    public Float getWarnvalue() {
        return warnvalue;
    }

    /**
     * @param warnvalue
     */
    public void setWarnvalue(Float warnvalue) {
        this.warnvalue = warnvalue;
    }

    /**
     * @return warnrelievevalue
     */
    public Float getWarnrelievevalue() {
        return warnrelievevalue;
    }

    /**
     * @param warnrelievevalue
     */
    public void setWarnrelievevalue(Float warnrelievevalue) {
        this.warnrelievevalue = warnrelievevalue;
    }

    /**
     * @return alarmvalue
     */
    public Float getAlarmvalue() {
        return alarmvalue;
    }

    /**
     * @param alarmvalue
     */
    public void setAlarmvalue(Float alarmvalue) {
        this.alarmvalue = alarmvalue;
    }

    /**
     * @return alarmcolumn
     */
    public String getAlarmcolumn() {
        return alarmcolumn;
    }

    /**
     * @param alarmcolumn
     */
    public void setAlarmcolumn(String alarmcolumn) {
        this.alarmcolumn = alarmcolumn;
    }

    /**
     * @return alarmrelievevalue
     */
    public Float getAlarmrelievevalue() {
        return alarmrelievevalue;
    }

    /**
     * @param alarmrelievevalue
     */
    public void setAlarmrelievevalue(Float alarmrelievevalue) {
        this.alarmrelievevalue = alarmrelievevalue;
    }

    /**
     * @return alarmmessage
     */
    public String getAlarmmessage() {
        return alarmmessage;
    }

    /**
     * @param alarmmessage
     */
    public void setAlarmmessage(String alarmmessage) {
        this.alarmmessage = alarmmessage;
    }

    /**
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}